<?php include "fonctions.php";?>

<table align=center>
  <tr>
    <th style="border:1px solid black">Identifiant de la comp&eacute;tence</th>
    <th style="border:1px solid black">Nom de la comp&eacute;tence</th>
    <th style="border:1px solid black">Description de la comp&eacute;tence</th>
    <th style="border:1px solid black">Identifiant du parent</th>
    <th style="border:1px solid black">Modifier cette comp&eacute;tence</th>
  </tr>
<?php

  $skills = getSkillList();
  foreach ($skills as $skill) {
    echo "<tr><td align=center>".$skill['id']."</td>";
    echo "<td align=center>".$skill['name']."</td>";
    echo "<td align=center>".$skill['description']."</td>";
    echo "<td align=center>".$skill['parent_id']."</td>";
    echo '<td align=center><a href="modify_skill.php?id='.$skill['id'].'">Cliquez ici</a></td></tr>';
  }
?>

</table>
   <p><br/><br/> <a href="index.php"> Retour au menu</a><br/></p>
